package lab02.test15;

/*
* Graduate同时连接两个接口
* */
public class Graduate implements StudentInterface,TeacherInterface{


    double fee;
    double pay;

    String name;
    String sex;
    int age;

    void Graduate(){}

    void Graduate(String name,String sex,int age){
        this.age=age;
        this.name=name;
        this.sex=sex;
    }

//    重写两个接口中的抽象方法
    @Override
    public void setFee(double fee) {
        this.fee=fee;

    }

    @Override
    public double getFee() {
        return 0;
    }

    @Override
    public void setPay(double pay) {

        this.pay=pay;
    }

    @Override
    public double getPay() {
        return 0;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "姓名："+name+"\n"+"年龄："+age+"\n"+"性别："+sex;
    }
}
